package cn.chenxing.module.query.controller;

import cn.chenxing.constant.VenusConstant;
import cn.chenxing.utils.TabPaneUtil;
import de.felixroske.jfxsupport.FXMLController;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.TabPane;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Lazy;

import java.net.URL;
import java.util.ResourceBundle;

/**
 * @Description 查询界面的控制层
 * @Author maogen.ymg
 * @Date 2020/4/12 23:37
 */
@Lazy
@FXMLController
@Slf4j
public class QueryController implements Initializable {

    @FXML
    private TabPane tabPane;

    @Override
    public void initialize(URL location, ResourceBundle resources) {
        TabPaneUtil.addTab(tabPane, "时间查询", VenusConstant.QUERY_TIME_VIEW_CLASS);
        TabPaneUtil.addTab(tabPane, "距离查询", VenusConstant.QUERY_DIST_VIEW_CLASS);
        TabPaneUtil.addTab(tabPane, "位置查询", VenusConstant.QUERY_LOCATION_VIEW_CLASS);
        TabPaneUtil.addTab(tabPane, "用户查询", VenusConstant.QUERY_USER_VIEW_CLASS);
    }


}
